<?
require("includes/constants.php");
require("includes/selectLanguage.php");
require("includes/funciones.inc.php");

session_start();
if(!isset($_SESSION['userName']))
	exit();

?>

<div id="mainPopUp">
	<form id="usersPopForm" name="usersPopForm" method="post">
		<table id="inPopUpN" border="0" cellpadding="0" cellspacing="0">
			<tbody>
				<tr>
					<td><?=$a_languages['Users.UserName']?></td>
					<td><input id="userName" name="userName" class="tableIn" type="text"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Users.UserPassword']?></td>
					<td><input id="userPassword" name="userPassword" class="tableIn" type="password"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Users.UserCompleteName']?></td>
					<td><input id="userCompleteName" name="userCompleteName" class="tableIn" type="text"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Users.UserEMail']?></td>
					<td><input id="userEMail" name="userEMail" class="tableIn normalCase" type="text"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Users.UserPhone']?></td>
					<td><input id="userPhone" name="userPhone" class="tableIn" type="text"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Users.UserAddress']?></td>
					<td><input id="userAddress" name="userAddress" class="tableIn" type="text"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Users.UserTypeUser']?></td>
					<td><select id="cmbTypeUser" name="cmbTypeUser" class="tableIn"></select></td>
				</tr>
				<?if($_SESSION['userType'] == $idTypeAdministrator){?>
					<tr>
						<td><?=$a_languages['Users.UserRestaurant']?></td>
						<td><select id="cmbRestaurant" name="cmbRestaurant" class="tableIn"></select></td>
					</tr>
				<?}?>
			</tbody>
		</table>
		<div id="tablesRestaurant"></div>
		<button id="btnExit" class="itmIngBtnIn"><?=$a_languages['Common.Cerrar']?></button>
		<button id="btnSave" class="itmIngBtnIn"><?=$a_languages['Common.Guardar']?></button>
	</form>
</div>

<script>
	$(document).ready(function() {
		idTypeYoungMan = <?=$idTypeYoungMan?>;
		$_initPop();
	});
</script>